I have to write huge data in text[csv] file. I used BufferedWriter to write the data and it took around 40 secs to write 174 mb of data. Is this the fastest ...
In this post, I'll show you a variety of solutions (and their performance) to parse through really, really large datasets using the Java programming language.
Just loop through the file, write every line immediately to other file as you read in, count the lines and if it reaches 100, then switch to next file.